#define _CRT_SECURE_NO_WARNINGS 1
int* masterMind(char* solution, char* guess, int* returnSize) {
	*returnSize = 2;
	static int arr[2] = { 0 };
	arr[0] = 0;
	arr[1] = 0;
	int s_arr[26] = { 0 };
	int g_arr[26] = { 0 };
	for (int i = 0; i < 4; i++) {
		if (solution[i] == guess[i]) {
			arr[0] += 1;
		}
		else {
			s_arr[solution[i] - 'A'] += 1;
			g_arr[guess[i] - 'A'] += 1;
		}
	}
	for (int j = 0; j < 26; j++) {
		arr[1] += s_arr[j] > g_arr[j] ? g_arr[j] : s_arr[j];;
	}
	return arr;
}